package drds.common.db.sql_mapping.dynamic_tag.xml_node;

import drds.common.db.sql_mapping.dynamic_tag.token_handler.TokenParser;

import java.util.Properties;


public class GlobalVariableReplacementParser {
    public static String parse(String string, Properties variables) {
        GlobalVariableReplacementHandler globalVariableReplacementHandler = new GlobalVariableReplacementHandler(variables);
        TokenParser tokenParser = new TokenParser("${", "}", globalVariableReplacementHandler);
        return tokenParser.parse(string);
    }

}
